package com.jic.manager.api.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.manager.request.MerchantStoreInfoResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author yinhaijun
 * @date: 2020/3/26
 */
@FeignClient(name = "jic-manager",path = "/child")
public interface ManagerChildApi {

    @PostMapping("queryChildNameById")
    RestResult<String> queryChildNameById(Long childId);

    @PostMapping("queryByThirdStoreCode")
    RestResult<MerchantStoreInfoResponse> queryByThirdStoreCode(String thirdStoreCode);

    @PostMapping("queryChildCodeById")
    RestResult<String> queryChildCodeById(Long childId);

}
